#include "fileops.h"
int delete_dir(const char*cwd,const char *dirpath){
    char full_path[100];
    build_full_path(cwd,dirpath,full_path);
    if(rmdir(full_path)==0){
        return 0;
    }else{
        perror("rmdir");
        return -1;
    }
}
int delete_file(const char*cwd,const char*filepath){
    char full_path[100];
    build_full_path(cwd,filepath,full_path);
    if(unlink(full_path)==0){
        return 0;
    }else{
        perror("rmfile ");
        return -1;
    }
}

